package io.renren.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.renren.common.entity.XlsCirclePriEntity;
import io.renren.common.service.impl.CrudServiceImpl;
import io.renren.dao.XlsCirclePriDao;
import io.renren.dto.XlsCirclePriDTO;
import io.renren.service.XlsCirclePriService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 新零售初级圈子-七人一组

 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2020-03-28
 */
@Service
public class XlsCirclePriServiceImpl extends CrudServiceImpl<XlsCirclePriDao, XlsCirclePriEntity, XlsCirclePriDTO> implements XlsCirclePriService {

    @Override
    public QueryWrapper<XlsCirclePriEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<XlsCirclePriEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StringUtils.isNotBlank(id), "id", id);

        return wrapper;
    }


}